﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SynoManager.DownloadStation.Search
{
    public abstract class SearchEngineBase : ISearchEngine
    {
        public override string ToString()
        {
            SearchEngineAttribute att = (SearchEngineAttribute) Attribute.GetCustomAttribute(this.GetType(), typeof (SearchEngineAttribute));
            return att.Name;
        }

        public abstract ISearchResult[] Search(string query);
    }
}
